#!/bin/sh

cd manager
g++ -fPIC -shared *.cpp -o ../main/libmanager.so
cd ../plugin1
g++ -fPIC -shared *.cpp ../main/libmanager.so -o ../main/libplugin1.so
cd ../plugin2
g++ -fPIC -shared *.cpp ../main/libmanager.so -o ../main/libplugin2.so
cd ../main
g++ *.cpp ../main/libmanager.so -o main -ldl

